﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SiGeSIB.GUI.Common.DedaGrid.Filter
{
	public class DedaGridFilterCollection
	{
		private List<DedaGrigFilterCondition> _Conditions;

		public DedaGridFilterCollection()
		{
			_Conditions = new List<DedaGrigFilterCondition>();
		}

		public void Add(DedaGrigFilterCondition condition)
		{
			_Conditions.Add(condition);
		}

		public override string ToString()
		{
			string result = string.Empty;

			foreach (DedaGrigFilterCondition cond in _Conditions)
				result += cond.ToString();

			return result;
		}
	}
}
